# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zsnes
pkgver=2.0.12
pkgrel=0
pkgdesc="Super Nintendo emulator"
url="https://github.com/xyproto/zsnes"
arch="x86"
license="GPL-2.0-only"
makedepends="
	libpng-dev
	mesa-dev
	nasm
	ncurses-dev
	sdl12-compat-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xyproto/zsnes/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/zsnes-$pkgver"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f321582a32a334cb32d9276c88c03db7d99c7ccce67a73a777bea6d66f3551a3013d1cfd38fda37867fb2424cde79ca4220894b27615f0f5c5a6de8ffaef037a  zsnes-2.0.12.tar.gz
"
